/* 基本重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
}

h2 {
  color: #3498db;
  margin-bottom: 20px;
}

/* 首页布局 */
.content {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }
}

.form-section, .list-section {
  flex: 1;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
  }

button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
  }

/* 消息样式 */
.success-message {
  background-color: #2ecc71;
  color: white;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.error-message {
  background-color: #e74c3c;
  color: white;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* 用户列表样式 */
.user-list ul {
  list-style: none;
}

.user-list li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.user-list li:last-child {
  border-bottom: none;
}
